package com.ruoyi.cscec.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cscec.mapper.OnlineMapper;
import com.ruoyi.cscec.domain.Online;
import com.ruoyi.cscec.service.IOnlineService;

/**
 * 实时监控Service业务层处理
 *
 * @author ruoyi
 * @date 2021-09-29
 */
@Service
public class OnlineServiceImpl implements IOnlineService
{
    @Autowired
    private OnlineMapper onlineMapper;

    /**
     * 查询实时监控
     *
     * @param id 实时监控主键
     * @return 实时监控
     */
    @Override
    public Online selectOnlineById(Long id)
    {
        return onlineMapper.selectOnlineById(id);
    }

    /**
     * 查询实时监控列表
     *
     * @param online 实时监控
     * @return 实时监控
     */
    @Override
    public List<Online> selectOnlineList(Online online)
    {
        return onlineMapper.selectOnlineList(online);
    }

    /**
     * 新增实时监控
     *
     * @param online 实时监控
     * @return 结果
     */
    @Override
    public int insertOnline(Online online)
    {
        return onlineMapper.insertOnline(online);
    }

    /**
     * 修改实时监控
     *
     * @param online 实时监控
     * @return 结果
     */
    @Override
    public int updateOnline(Online online)
    {
        return onlineMapper.updateOnline(online);
    }

    /**
     * 批量删除实时监控
     *
     * @param ids 需要删除的实时监控主键
     * @return 结果
     */
    @Override
    public int deleteOnlineByIds(Long[] ids)
    {
        return onlineMapper.deleteOnlineByIds(ids);
    }

    /**
     * 删除实时监控信息
     *
     * @param id 实时监控主键
     * @return 结果
     */
    @Override
    public int deleteOnlineById(Long id)
    {
        return onlineMapper.deleteOnlineById(id);
    }
}
